<?php
namespace app\http\middleware;

use app\common\JwtToken;

class VerifyToken
{
    /**
     * 检测 TOKEN 是否有效。
     * User: zhouyao
     * Date: 2018/9/15
     * Time: 下午7:26
     * @param $request
     * @param \Closure $next
     * @throws \app\common\exception\AppException
     * @return mixed
     */
    public function handle($request, \Closure $next)
    {
//        $token = $request->param('token');
//        $validationToken = JwtToken::validationToken($token);
//
//        if (!$validationToken) {
//            app_fail(9986);
//        }

        return $next($request);
    }

}